object SplitDetailForm: TSplitDetailForm
  Left = 251
  Top = 107
  Width = 870
  Height = 500
  Caption = #25286#20998#27969#27700#26126#32454
  Color = clBtnFace
  Font.Charset = ANSI_CHARSET
  Font.Color = clWindowText
  Font.Height = -13
  Font.Name = #23435#20307
  Font.Style = []
  FormStyle = fsMDIChild
  OldCreateOrder = False
  Position = poScreenCenter
  Visible = True
  OnClose = FormClose
  OnCreate = FormCreate
  PixelsPerInch = 96
  TextHeight = 13
  object cxgrid1: TcxGrid
    Left = 0
    Top = 50
    Width = 862
    Height = 241
    Align = alTop
    Font.Charset = ANSI_CHARSET
    Font.Color = clWindowText
    Font.Height = -13
    Font.Name = #23435#20307
    Font.Style = []
    ParentFont = False
    TabOrder = 0
    object tvSplit: TcxGridDBTableView
      NavigatorButtons.ConfirmDelete = False
      DataController.DataSource = dsSplit
      DataController.Summary.DefaultGroupSummaryItems = <>
      DataController.Summary.FooterSummaryItems = <
        item
          Kind = skSum
          FieldName = 'RealMoney'
          Column = tvSplitRealMoney
        end
        item
          Kind = skSum
          FieldName = 'TollMoney'
          Column = tvSplitTollMoney
        end>
      DataController.Summary.SummaryGroups = <>
      OptionsView.Footer = True
      OptionsView.GroupByBox = False
      object tvSplitExitDate: TcxGridDBColumn
        Caption = #32479#35745#26085#26399
        DataBinding.FieldName = 'ExitDate'
        Options.Editing = False
      end
      object tvSplitPayCardNo: TcxGridDBColumn
        Caption = #21345#21495
        DataBinding.FieldName = 'PayCardNo'
        Options.Editing = False
      end
      object tvSplitVehClass: TcxGridDBColumn
        Caption = #36710#22411
        DataBinding.FieldName = 'VehClass'
        Options.Editing = False
      end
      object tvSplitEnStation: TcxGridDBColumn
        Caption = #20837#21475#31449
        DataBinding.FieldName = 'EnStation'
        Options.Editing = False
      end
      object tvSplitExStation: TcxGridDBColumn
        Caption = #20986#21475#31449
        DataBinding.FieldName = 'ExStation'
        Options.Editing = False
      end
      object tvSplitTollMoney: TcxGridDBColumn
        Caption = #24212#25910
        DataBinding.FieldName = 'TollMoney'
        Options.Editing = False
        Options.Filtering = False
      end
      object tvSplitDiscountRate: TcxGridDBColumn
        Caption = #25240#25187
        DataBinding.FieldName = 'DiscountRate'
        Options.Editing = False
      end
      object tvSplitRealMoney: TcxGridDBColumn
        Caption = #23454#25910
        DataBinding.FieldName = 'RealMoney'
        Options.Editing = False
        Options.Filtering = False
      end
      object tvSplitSplitCount: TcxGridDBColumn
        Caption = #25286#20998#27425#25968
        DataBinding.FieldName = 'SplitCount'
        Options.Editing = False
      end
    end
    object glSplit: TcxGridLevel
      GridView = tvSplit
    end
  end
  object grp1: TGroupBox
    Left = 0
    Top = 0
    Width = 862
    Height = 50
    Align = alTop
    TabOrder = 1
    object lbl1: TLabel
      Left = 8
      Top = 23
      Width = 70
      Height = 13
      Caption = #36215#22987#26085#26399#65306
      Font.Charset = ANSI_CHARSET
      Font.Color = clBlue
      Font.Height = -13
      Font.Name = #23435#20307
      Font.Style = [fsBold]
      ParentFont = False
    end
    object lbl2: TLabel
      Left = 198
      Top = 24
      Width = 70
      Height = 13
      Caption = #32456#27490#26085#26399#65306
      Font.Charset = ANSI_CHARSET
      Font.Color = clBlue
      Font.Height = -13
      Font.Name = #23435#20307
      Font.Style = [fsBold]
      ParentFont = False
    end
    object dtpBegin: TDateTimePicker
      Left = 82
      Top = 20
      Width = 110
      Height = 21
      Date = 37880.000000000000000000
      Format = 'yyyy-MM-dd'
      Time = 37880.000000000000000000
      DateFormat = dfLong
      DateMode = dmUpDown
      ImeName = 'Chinese (Simplified) - US Keyboard'
      TabOrder = 0
    end
    object dtpEnd: TDateTimePicker
      Left = 275
      Top = 20
      Width = 118
      Height = 21
      Date = 37880.000000000000000000
      Format = 'yyyy-MM-dd'
      Time = 37880.000000000000000000
      DateFormat = dfLong
      DateMode = dmUpDown
      ImeName = 'Chinese (Simplified) - US Keyboard'
      TabOrder = 1
    end
    object btnOK: TBitBtn
      Left = 406
      Top = 19
      Width = 75
      Height = 22
      Caption = #26597#35810
      TabOrder = 2
      OnClick = btnOKClick
    end
    object btnPrint: TBitBtn
      Left = 496
      Top = 19
      Width = 75
      Height = 22
      Caption = #25171#21360
      TabOrder = 3
    end
  end
  object cxgrid3: TcxGrid
    Left = 0
    Top = 291
    Width = 862
    Height = 182
    Align = alClient
    Font.Charset = ANSI_CHARSET
    Font.Color = clWindowText
    Font.Height = -13
    Font.Name = #23435#20307
    Font.Style = []
    ParentFont = False
    TabOrder = 2
    object tvSplitValue1: TcxGridDBTableView
      NavigatorButtons.ConfirmDelete = False
      DataController.DataSource = srcSplitValue
      DataController.Summary.DefaultGroupSummaryItems = <>
      DataController.Summary.FooterSummaryItems = <
        item
          Kind = skSum
          FieldName = 'Splitmoney'
          Column = tvSplitValue1Splitmoney
        end>
      DataController.Summary.SummaryGroups = <>
      OptionsView.Footer = True
      OptionsView.GroupByBox = False
      object tvSplitValue1RoadID: TcxGridDBColumn
        Caption = #36335#27573
        DataBinding.FieldName = 'RoadID'
        PropertiesClassName = 'TcxLookupComboBoxProperties'
        Properties.KeyFieldNames = 'ROADID'
        Properties.ListColumns = <
          item
            FieldName = 'ROADNAME'
          end>
        Properties.ListSource = dsRoad
        Options.Editing = False
        Options.Filtering = False
      end
      object tvSplitValue1OwnerId: TcxGridDBColumn
        Caption = #19994#20027
        DataBinding.FieldName = 'OwnerId'
        PropertiesClassName = 'TcxLookupComboBoxProperties'
        Properties.KeyFieldNames = 'OWNERID'
        Properties.ListColumns = <
          item
            FieldName = 'OWNERNAME'
          end>
        Properties.ListSource = dsOwner
        Options.Editing = False
        Options.Filtering = False
        Width = 193
      end
      object tvSplitValue1Splitmoney: TcxGridDBColumn
        Caption = #25286#20998#37329#39069
        DataBinding.FieldName = 'Splitmoney'
        Options.Editing = False
        Options.Filtering = False
      end
      object tvSplitValue1SplitNo: TcxGridDBColumn
        Caption = #25286#20998#24207#21495
        DataBinding.FieldName = 'SplitNo'
        Options.Editing = False
        Options.Filtering = False
      end
    end
    object glSplitValue1: TcxGridLevel
      GridView = tvSplitValue1
    end
  end
  object msspSplitDetail: TMSStoredProc
    StoredProcName = 'usp_GetSplitDetail'
    Connection = MainForm.connSQL
    SQL.Strings = (
      '{:RETURN_VALUE = CALL usp_GetSplitDetail (:BeginDate, :EndDate)}')
    Left = 664
    ParamData = <
      item
        DataType = ftInteger
        Name = 'RETURN_VALUE'
        ParamType = ptResult
        Value = 0
      end
      item
        DataType = ftDateTime
        Name = 'BeginDate'
        ParamType = ptInput
        Value = 40513d
      end
      item
        DataType = ftDateTime
        Name = 'EndDate'
        ParamType = ptInput
        Value = 40543d
      end>
    CommandStoredProcName = 'usp_GetSplitDetail'
  end
  object dsSplit: TDataSource
    DataSet = msspSplitDetail
    Left = 608
  end
  object qrySplitValue: TMSQuery
    Connection = MainForm.connSQL
    SQL.Strings = (
      'SELECT  R.nref.value ('#39'@RoadId[1]'#39', '#39'int'#39') as RoadID, '
      
        '    R.nref.value ('#39'@SplitMoney[1]'#39', '#39'Decimal(14,2)'#39')  as Splitmo' +
        'ney, '
      '    R.nref.value ('#39'@OwnerId[1]'#39', '#39'int'#39') as OwnerId, '
      '  '
      '   R.nref.value ('#39'@SplitNo[1]'#39', '#39'int'#39') as SplitNo '
      
        '   FROM dbo.TD_SplitDetail d CROSS APPLY SplitValue.nodes('#39'/Spli' +
        'tDetail/SplitTo'#39') AS R(nref)')
    MasterSource = dsSplit
    MasterFields = 'ExImageNo'
    DetailFields = 'ExImageNo'
    Left = 432
    Top = 104
    ParamData = <
      item
        DataType = ftString
        Name = 'ExImageNo'
        ParamType = ptInput
        Size = 16
        Value = '01013314890063A3'
      end>
  end
  object srcSplitValue: TDataSource
    DataSet = qrySplitValue
    Left = 344
    Top = 112
  end
  object tblRoad: TMSTable
    TableName = 'TS_ROAD'
    Connection = MainForm.connSQL
    Left = 136
    Top = 248
  end
  object dsRoad: TDataSource
    DataSet = tblRoad
    Left = 80
    Top = 248
  end
  object dsOwner: TDataSource
    DataSet = tblOwner
    Left = 216
    Top = 176
  end
  object tblOwner: TMSTable
    TableName = 'TS_OWNER'
    Connection = MainForm.connSQL
    Left = 264
    Top = 176
  end
end
